package com.powernode.mapper;

import com.powernode.domain.SysFolder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 描述：
 * 作者：动力节点·武汉
 */
public interface SysFolderMapper {
    /**
     * delete by primary key
     *
     * @param folderId primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer folderId);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(SysFolder record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(SysFolder record);

    /**
     * select by primary key
     *
     * @param folderId primary key
     * @return object by primary key
     */
    SysFolder selectByPrimaryKey(Integer folderId);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(SysFolder record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(SysFolder record);

    List<SysFolder> queryFolderList(@Param("folderName") String folderName, @Param("userId") Integer userId);
}